home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / USINGI.DMO < prev    next >
Text File  |  1996-07-04  |  2KB  |  46 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-12-22 ╟─╖
  5.  │  │ FILE NAME   USINGI$ .DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │ LIBRARY     DAS-NB02.PBL ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                .....................................                  ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17. '.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
  18. ' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
  19.  
  20. $INCLUDE "DAS-NB02.INC"
  21. COLOR 7, 0
  22. CLS
  23.  
  24. ? "┌──────────────────────────────────────────────────────────────────────
  25. ? "│ fIusing$( Nbr&&, Length% )
  26. ? "├───────────────────────────────────────────────────────────────────────
  27. ? "│ PRINT USING and USING$ fall a bit short when formatting QUAD integers.
  28. ? "│ This function is specifically designed to fill that gap. It is used
  29. ? "│ just like USING$ but the commas are assumed so you need not send a
  30. ? "│ mask just the final length of the required string.
  31. ? "│ NOTE: pbvUsingChrs is used to determine which 'comma' to use.
  32. ? "└─────────────────────────────────────────────────────────────────────────
  33. ?
  34.  
  35. Nbr&& = &b0111111111111111111111111111111111111111111111111111111111111111
  36. PRINT fIusing$( Nbr&&, 18 )
  37. PRINT
  38. PRINT fIusing$( Nbr&&, 26 )
  39.  
  40. MID$( pbvUsingChrs, 3, 2 ) = ".,"
  41. Nbr&& = &b1000000000000000000000000000000000000000000000000000000000000001
  42. PRINT fIusing$( Nbr&&, 26 )
  43. MID$( pbvUsingChrs, 3, 2 ) = ",."
  44.  
  45. Nbr&& = -1
  46. PRINT fIusing$( Nbr&&, 26 )